|
|
|
|
|
|
|
|
|
Windows Phone 7 : Running Silverlight Projects in the Browser (part 2) |
Here are two more simple conversions of Windows Phone 7 Silverlight examples that we created earlier. Neither of these has had any presentation attention lavished upon them, so they look extremely basic, but they demonstrate the direct conversion results that are achieved when converting into the browser-based Silverlight environment. |
|
Windows Phone 7 : Running Silverlight Projects in the Browser (part 1) |
The conversion of a Silverlight project from Windows Phone 7 into the general Silverlight environment is unfortunately not quite as straightforward as it is for XNA. Although a fair bit more effort is required, however, it is still possible to get your project moved across relatively unscathed. |
|
|
|
|
Windows Phone 7 : Running XNA Projects in Windows (part 2) - Display Differences |
There are several adjustments that need to be made in terms of the display when moving a project from Windows Phone 7 to Windows. Clearly, the two platforms have very different display devices and capabilities and you will need to make provision for these in order for your game to integrate nicely into both environments. |
|
|
|
Windows Phone 7 : 3D Game Development (part 3) - The Game Class |
The Camera GameComponent object will need two public properties: View and Projection of type Matrix. Don't worry about what it means to define these terms as a Matrix type – it isn't critical. It is more important to think of the concepts above as we define them programmatically. |
|
|
Windows Phone 7 : 3D Game Development (part 1) - 3D Game Concepts |
Programming in 2D is similar in process to hand-drawing a cartoon on paper. You can draw a scene in 2D that makes objects appear near or in the background, providing perspective that models the 3D real world. 3D game development results in the same 2D projection on a flat 2D screen, however, the path to rendering is very different. |
|
|
Windows Phone 7 : AlienShooter Enhancements (part 1) - Load and Save Game State |
For our game, we automatically save game state when the user backs out of the GameplayScreen with a game in progress. The main menu screen is modified to include both New Game and Resume Game menu options that will resume an existing game if saved state is present. Automatic save keeps things simple and is a typical state management approach for many game developers. |
|
|
|
|
Windows Phone 7 Programming Model : Web Browser Control |
The WebBrowser controlis not a task, but it is related to the web browser task, so it makes sense to cover it here. The WebBrowser control is much more programmable than the WebBrowserTask covered in the previous section on Launchers. |
|
Windows Phone 7 Programming Model : Tasks |
Windows Phone 7 third-party applications run in a sandbox that is isolated from other third-party applications, as well as from the underlying operating system and hardware, except where APIs are surfaced. |
|
|
Windows Phone 7 Programming Model : Device Information |
Developers need to understand the state of a device in order to provide the best experience for end users, such as letting the user know when a large download is about to begin and asking if the user would like to switch to a wireless or Ethernet connection via USB. |
|
Handling Input on Windows Phone 7 : Microphone Input |
The XNA Framework libraries make the Microphone available programmatically to applications. Add a reference to Microsoft.Xna.Framework assembly and a using clause for the Microsoft.Xna.Framework.Audio. The class of interest is the Microphone class that provides access to available microphones on the device. |
|
Handling Input on Windows Phone 7 : Location |
The location sensor is a very useful capability, given that mobile devices are generally on the go with their owner. Location provides context for applications that can make life easier on the user by automatically adjusting for the user's current location. |
|
Handling Input on Windows Phone 7 : Accelerometer |
The accelerometer can be an entertaining and engaging method of input, especially for game development with XNA Game Studio or Silverlight. We all have seen the car racing games on mobile phone or mobile gaming devices where the user is tilting the device like a steering wheel. |
|
Windows Phone 7 : Using MVVM and Performing Unit Testing |
You must write your application by using the MVVM pattern, then you will be able to write Unit Test for each ViewModel. To test your ViewModels, you need to use the Silverlight Unit Test Framework tweaked for Windows Phone 7 by Jeff Wilcox. |
|
|
|
Windows Phone 7 : In the Cloud - Interacting with WCF |
Windows Phone was created to use services, but you should always remember one thing when you work with it: service access is always asynchronous, because (as with the use of services in Silverlight for the Web) you must not freeze the user interface. |
|
|
|
|
Windows Phone 7 : Isolated Storage - Saving Serialized Data |
The XmlSerializer class serializes (and deserializes) objects to and from XML documents. In serialization, we convert an object and its properties to a serial format (in this case, XML) that can be stored (in our case) or transported (in the case of services, for example). |
|
|
|
Windows Phone 7 : Sounding Out with Game Audio - Playing Music |
The certification requirement complication for Windows Phone 7 games revolves around the fact that one of the other primary uses for the device is as a media player. The operating system has a flexible media library that allows music and other audio content to be played on the device, even when the media library has been moved to the background. |
|
Windows Phone 7 : Playing Sound Effects |
XNA provides a fair amount of flexibility for playing sound effects inside your games. It can play multiple sounds simultaneously (including multiple instances of the same sound) and offers control over volume levels, stereo panning, and pitch shifting. |
|
|
Windows Phone 7 Advanced UI Development : The Microsoft Advertising SDK |
The Microsoft Advertising SDK provides mobile advertising support for Windows Phone 7. You are not required to use Microsoft's advertising SDK and associated advertising network. If you have an existing advertising network or an in-house creative and sales force, you can continue to use those resources for advertising revenue. |
|
|
|
|
|